import {
    mapState,
} from 'vuex'
import config from '../config/index'
export default {

    computed: {
        ...mapState({
            userInfo: state => state.userInfo,
            lightArea:state => state.lightArea,
            windEq:state => state.windEq,
            light:state => state.light,
            wind:state => state.wind,
            maxYears:state => state.maxYears,
            dList:state => state.dList,
            types:state => state.types,
            defaultList:state => state.defaultList,
            defaultList2:state => state.defaultList2,
        })

    },
    data() {
        return {
            opss: {
                vuescroll: {},
                scrollPanel: {},
                rail: {
                    background: "#E8E3E2",
                    opacity: 1,
                    size: "16px",
                    specifyBorderRadius: false,
                    gutterOfEnds: "93px", //轨道距 x 和 y 轴两端的距离
                    gutterOfSide: "0", //距离容器的距离
                    keepShow: false, //是否即使 bar 不存在的情况下也保持显示
                    border: "" //边框
                },
                bar: {
                    hoverStyle: true,
                    keepShow: true,
                    size: "12px",
                    onlyShowBarOnScroll: false, //是否只有滚动的时候才显示滚动条
                    background: "#A39491" //颜色
                }
            }
        }
    },
    methods: {
        /**
         * 返回上一级
        */
        goBack() {
            this.$router.go(-1);
        },
    }
}